/*
 * @Author: WangShuai 1830773767@qq.com
 * @Date: 2023-12-04 22:38:08
 * @LastEditors: WangShuai 1830773767@qq.com
 * @LastEditTime: 2025-06-12 17:07:54
 * @FilePath: \vue3_admin_template\project\src\router\index.ts
 * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
 */
//通过Vue-router插件实现模板路由配置
import { createRouter, createWebHashHistory } from 'vue-router'
import { constantRoute } from './routers'
//创建路由器
const Router = createRouter({
  //路由模式hash哈希模式
  history: createWebHashHistory(),
  routes: constantRoute,
  //滚动行为
  scrollBehavior() {
    return {
      left: 0,
      top: 0,
    }
  },
})

//暴露路由器
export default Router
